package com.zelix;

import java.awt.*;
import java.io.BufferedReader;
import java.io.StringReader;
import java.util.Vector;
import javax.swing.*;

public class a2 extends z1
{

    static Vector h = new Vector();
    public JButton i;
    protected yw j;
    static String k[];
    private static String z[];

    public a2(JFrame jframe, String s1, String s2, BufferedReader bufferedreader, boolean flag, boolean flag1)
    {
        this(jframe, s1, s2, bufferedreader, flag, flag1, true);
    }

    public a2(JFrame jframe, String s1, String s2, BufferedReader bufferedreader, boolean flag, boolean flag1, boolean flag2)
    {
        this(jframe, s1, s2, bufferedreader, flag, flag1, true, null);
    }

    public a2(JFrame jframe, String s1, String s2, BufferedReader bufferedreader, boolean flag, boolean flag1, boolean flag2, 
            yw yw1)
    {
        super(jframe, s1, s2, bufferedreader, flag, flag1, flag2);
        h.addElement(this);
        int l = h.size() * 10;
        j = yw1;
        a(l, l, flag2);
    }

    public a2(JFrame jframe, String s1, String s2, String s3, boolean flag, boolean flag1)
    {
        this(jframe, s1, s2, new BufferedReader(new StringReader(s3)), flag, flag1);
    }

    public a2(JFrame jframe, String s1, String s2, String s3, boolean flag, boolean flag1, boolean flag2)
    {
        this(jframe, s1, s2, new BufferedReader(new StringReader(s3)), flag, flag1, flag2);
    }

    public final void b()
    {
        h.removeElement(this);
        super.b();
        if(j != null)
            j.a();
    }

    protected void e()
    {
        Dimension dimension = Toolkit.getDefaultToolkit().getScreenSize();
        Container container = getContentPane();
        super.g = new j0(container);
        container.setLayout(super.g);
        super.d = new JLabel();
        container.add(super.d, z[0]);
        super.e = new JTextArea();
        container.add(new q4(super.e), z[3]);
        i = new JButton(z[1]);
        container.add(i, z[2]);
        ib ib1 = new ib(this);
        addWindowListener(ib1);
        s s1 = new s(this);
        i.addKeyListener(s1);
        super.e.addKeyListener(s1);
        yz yz1 = new yz(this);
        i.addActionListener(yz1);
        super.g.a(k);
        setSize(Math.min(500, dimension.width), Math.min(400, dimension.height));
    }

    private static char[] z(String s) {
        char ac[] = s.toCharArray();
        int clen = ac.length;
        if (clen >= 2)
            return ac;
        ac[0] ^= 0x0e;
        return ac;
    }

    private static String dsse(char ac[]) {
        for (int i = 0; i < ac.length; i++) {
            byte key = 0;
            switch (i % 5) {
                case 0:
                    key = 0x6b;
                    break;
                case 1:
                    key =102;
                    break;
                case 2:
                    key =19;
                    break;
                case 3:
                    key =43;
                    break;
                default:
                    key =14;
                    break;
            }
            ac[i] ^= key;
        }
        return new String(ac).intern();
    }

    static
    {
        String as[] = new String[4];
        as[0] = dsse(z("\006\025tgl\007"));
        as[1] = dsse(z("$-"));
        as[2] = dsse(z("\004\rQ_`"));
        as[3] = dsse(z("\035\017v\\O\031\003r"));
        z = as;
        String as1[] = new String[10];
        as1[0] = dsse(z("\006\025tgl\007HgD~VS"));
        as1[1] = dsse(z("\006\025tgl\007H\177Nh\037[pD`\037\007zEk\031HdBj\037\0169\036!ZV#"));
        as1[2] = dsse(z("\035\017v\\O\031\003r\005z\004\026.F}\f*qG \t\tg_a\006M&"));
        as1[3] = dsse(z("\035\017v\\O\031\003r\005b\016\000g\026m\004\bgJg\005\003a\005y\002\002gC$^I\"\033>"));
        as1[4] = dsse(z("\035\017v\\O\031\003r\005|\002\001{_3\b\t}_o\002\bvY \034\017w_fA_&\004?[V"));
        as1[5] = dsse(z("\035\017v\\O\031\003r\005l\004\022gDcV\005|Ez\n\017}N|E\004|_z\004\013>De)\022}\005j\016\000r^b\037.vBi\003\022>\032>"));
        as1[6] = dsse(z("\004\rQ_`E\022|[3\035\017v\\O\031\003r\005l\004\022gDc@S"));
        as1[7] = dsse(z("\004\rQ_`E\005vEz\016\024K\026m\004\bgJg\005\003a\005y\002\002gC$^V<\032>["));
        as1[8] = dsse(z("\007\007jD{\037H~B`<\017w_fVT&\033"));
        as1[9] = dsse(z("\007\007jD{\037H~B`#\003zLf\037[!\033>"));
        k = as1;
    }
}